package repository

import (
	"context"
	"jk-time/webook/search/dao"
)

type AnyRepository interface {
	Input(ctx context.Context, index string, docID string, data string) error
	Delete(ctx context.Context, index, id string) error
}
type anyRepository struct {
	dao dao.AnyDAO
}

func (a *anyRepository) Input(ctx context.Context, index string, docID string, data string) error {
	return a.dao.InputAny(ctx, index, docID, data)
}
func (a *anyRepository) Delete(ctx context.Context, index, id string) error {
	return a.dao.Delete(ctx, index, id)
}
